package com.ny.baoxian;

import java.util.Scanner;

public class Test {

    public static void main(String[] args) {

        System.out.println("车价：");
        Scanner scanner = new Scanner(System.in);
        double jiage = scanner.nextDouble();
        System.out.println("该车事故次数：");
        int n = scanner.nextInt();
        Baoxian baoxian = new Chexian(n,jiage);
        double money = baoxian.add();
        System.out.println("你的保费是："+ money);


    }

}
